package com.ssy.lingxi.member.merchant.repository;

import com.ssy.lingxi.member.merchant.entity.BaseRightConfigDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 万宁
 * @version 2.0.0
 * @date 2020-08-23
 */
@Repository
public interface BaseRightConfigRepository extends JpaRepository<BaseRightConfigDO, Long>, JpaSpecificationExecutor<BaseRightConfigDO> {
    List<BaseRightConfigDO> findByRightTypeEnumIn(List<Integer> typeEnums);

    BaseRightConfigDO findFirstByRightTypeEnum(Integer typeEnum);

    List<BaseRightConfigDO> findByStatus(Integer status);
}
